.class Lcom/waiqin365/base/login/ch;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/waiqin365/base/login/cg;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/cg;I)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/ch;->b:Lcom/waiqin365/base/login/cg;

    iput p2, p0, Lcom/waiqin365/base/login/ch;->a:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    const/4 v1, 0x1

    iget v0, p0, Lcom/waiqin365/base/login/ch;->a:I

    packed-switch v0, :pswitch_data_0

    iget-object v0, p0, Lcom/waiqin365/base/login/ch;->b:Lcom/waiqin365/base/login/cg;

    iget-object v0, v0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/waiqin365/base/login/LoginMainActivity;->isDisConnected:Z

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/waiqin365/base/login/ci;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/login/ci;-><init>(Lcom/waiqin365/base/login/ch;)V

    const-wide/16 v2, 0x7d0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    sget-boolean v0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->a:Z

    if-nez v0, :cond_0

    sput-boolean v1, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b:Z

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->logout()V

    iget-object v0, p0, Lcom/waiqin365/base/login/ch;->b:Lcom/waiqin365/base/login/cg;

    iget-object v0, v0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # invokes: Lcom/waiqin365/base/login/LoginMainActivity;->sendEsnCheck()V
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$4700(Lcom/waiqin365/base/login/LoginMainActivity;)V

    goto :goto_0

    :pswitch_1
    sput-boolean v1, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b:Z

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->logout()V

    iget-object v0, p0, Lcom/waiqin365/base/login/ch;->b:Lcom/waiqin365/base/login/cg;

    iget-object v0, v0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080303

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/waiqin365/base/login/LoginMainActivity;->loginErrorInfo:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ch;->b:Lcom/waiqin365/base/login/cg;

    iget-object v0, v0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->handler:Landroid/os/Handler;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2000(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v0

    const/16 v1, 0x133

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/base/login/ch;->b:Lcom/waiqin365/base/login/cg;

    iget-object v1, v1, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->handler:Landroid/os/Handler;
    invoke-static {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2000(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0xce
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
